module.exports = function () {
	return function (req, res, next) {
		var loginName = 'anonymous';
		if (req.session && req.session.user)
			loginName = req.session.user.loginName;
		console.log("[" + req.method + "] " + req.ip + "(" + loginName + ") " + req.url);
		next();
	}
}